export default {
	async getTradeDetail() {
		let params = {
			id: this.id
		};
		let res = await this.httptool.post(this.apis.getTradeDetail, params);
		this.modelData = res.data;
	},
	async getProductList() {
		let params = {};
		params.pageNum = 1;
		params.pageSize = 100000;
		params.categoryId = this.type;
		params.userId = this.id;
		let res = await this.httptool.post(this.apis.getProductList, params);
		console.log(res)
		this.tableData = res.data.list;
		this.$nextTick(() => {

		})
	},
}